<template>
	<view class="report_list">
		<view  v-if="!auditShow">
			<other></other>
		</view>
		<view  v-if="auditShow">
			<view class="report_item" @click="natTo('/pages/index/report1')">
				<image src="https://sy-hws-file-oss.oss-cn-beijing.aliyuncs.com/yijing/report_1.png"  mode="aspectFit" class="report_item_image"></image>
			    <view class="report_item_content" >
					<view class="report_item_t1">综合解读</view>
					<view class="report_item_t2">八字排盘</view>
					<view class="report_item_more">立即查看</view>
				</view>
			</view>
			<!-- <view class="report_item"  @click="natTo('/pages/index/report')">
				<image src="https://sy-hws-file-oss.oss-cn-beijing.aliyuncs.com/yijing/report_2.png"  mode="aspectFit" class="report_item_image"></image>
			    <view class="report_item_content" >
					<view class="report_item_t1">起名分析</view>
					<view class="report_item_t2">起名分析</view>
					<view class="report_item_more">立即查看</view>
				</view>
			</view> -->
			<view class="report_item"  @click="natTo('/pages/moreModule/wealth')">
				<image src="https://sy-hws-file-oss.oss-cn-beijing.aliyuncs.com/yijing/report_3.png"  mode="aspectFit" class="report_item_image"></image>
			    <view class="report_item_content" >
					<view class="report_item_t1">财富解读</view>
					<view class="report_item_t2">财富事业关系</view>
					<view class="report_item_more">立即查看</view>
				</view>
			</view>
			<view class="report_item"  @click="natTo('/pages/moreModule/marriage')">
				<image src="https://sy-hws-file-oss.oss-cn-beijing.aliyuncs.com/yijing/report_4.png"  mode="aspectFit" class="report_item_image"></image>
			    <view class="report_item_content" >
					<view class="report_item_t1">合婚合盘</view>
					<view class="report_item_t2">婚姻关系</view>
					<view class="report_item_more">立即查看</view>
				</view>
			</view>
			<!-- <view class="report_item"  @click="natTo('/pages/index/report')">
				<image src="https://sy-hws-file-oss.oss-cn-beijing.aliyuncs.com/yijing/report_5.png"  mode="aspectFit" class="report_item_image"></image>
			    <view class="report_item_content" >
					<view class="report_item_t1">风水解读</view>
					<view class="report_item_t2">风水分析</view>
					<view class="report_item_more">立即查看</view>
				</view>
			</view> -->
		</view>
	
	</view>
</template>

<script>
	import other from '@/components/other/index.vue'
	export default {
		components:{other},
		data(){
			return{
				auditShow:false,
			}
		},
		onLoad(){
			this.getAudit()
		},
		methods:{
			//获取微信审核开关
			getAudit(){
			    let param = {};
				param.url='v3/system/front/configuration/1'
				this.$request(param).then(res=>{
					console.log(res);
					this.auditShow=res.data.auditSwitch
					
				})
			},
			natTo(url){
				this.$tab.navigateTo(url)
			},
		}
	}
</script>

<style lang="scss" scoped>
	page {
		background-color: #fff;
		width: 750rpx;
		
	}
	.report_list{
		padding: 18rpx 32rpx 18rpx 28rpx;
	}
	
	.report_item_image{
		width: 686rpx;
		height: 208rpx;
	}
	.report_item{
		position: relative;
		margin-bottom: 32rpx;
		// background-color: red;
		.report_item_content{
			position: absolute;
			left: 32rpx;
			top: 35rpx;
			
			.report_item_t1{
				font-size: 32rpx;
			}
			.report_item_t2{
				font-size: 24rpx;
				margin: 16rpx 0 18rpx 0;
			}
			.report_item_more{
				width: 124rpx;
				height: 40rpx;
				border-radius: 44rpx;
				background: rgba(255, 255, 255, 1);
				text-align: center;
				line-height: 40rpx;
				font-size: 24rpx;
				color: rgb(94, 94, 94);
			}
		}
	}
</style>